How to set conditional value inside of an object

welcome to shbcf.ru